
from pyspark.sql import SparkSession

spark = SparkSession.builder.appName("firstSparkApp").getOrCreate()
print("first spark app")
lines = spark.sparkContext.textFile("/root/phwang-jobs/2019/derby.log")

print(lines.collect().count("a"))
